<!DOCTYPE HTML>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>商之联后台管理系统</title>
  <meta name="keywords" content="table">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="{:C('SUPPLIER_ADMIN_IMG')}favicon.png"> <link rel="apple-touch-icon-precomposed" href="{:C('SUPPLIER_ADMIN_IMG')}app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="{:C('SUPPLIER_ADMIN_CSS')}amazeui.min.css"/>
  <link rel="stylesheet" href="{:C('ADMIN_CSS')}admin.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->
<!-- header start-->
<style type="text/css">
 .tabbox td{text-align: center;}
 .am-btn-toolbar .am-btn-group, .am-btn-toolbar .am-input-group{
  float: none;
 }
</style>
<include file="Public:header"/>

<!-- header end-->
<div class="am-cf admin-main">
 <!-- sidebar start -->
   <include file="Public:menu"/>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content">

    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">订单管理</strong> / <small>订单列表</small></div>
    </div>
  <!-- 搜索条件start -->
  <form >
    <div class="am-g ">
      <div class="am-u-sm-12 am-u-md-4 search">
      	<p><label>订单号：</label>&nbsp;&nbsp;&nbsp;<input type="text" name="ordersn" /> </p>
      	<p><label>支付类型：</label>
        <select name="paytype" >
          <option  value="99">请选择支付类型</option>
          <foreach name="paytype" item="type" key="key">
              <option value="{$key}">{$type}</option>
          </foreach>
        </select>
        </p>
        <p><label>加盟商家：</label>
          <select name="shopid" style="width:50%">
             <option  value="0">请选择加盟商家</option>
             <foreach name="allshop" item='name' key="key">
                 <option  value="{$key}">{$name}</option>
             </foreach>
          </select>
       </p>
      </div>
      <div class="am-u-sm-12 am-u-md-4 search">
      	<p><label>订单类型：</label>
        <select name="areatype">
            <option value="99">请选择订单类型 </option>
            <foreach name='areatype' item='type' key="key">
                <option value="{$key}">{$type} </option>
            </foreach>
        </select>
        </p>
      	<p><label>订单状态：</label>
          <select name="orderstatus">
              <option value="99"> 请选择订单状态</option> 
            <foreach name="allstatus" item="status" key="key">
              <option value="{$key}">{$status}</option>
            </foreach>
            
          </select>
      </div>
      <div class="am-u-sm-12 am-u-md-4 search">
      
      <p>  开始时间： <input class="laydate-icon" id="start" style="width:200px; margin-right:10px;"  /> </p>
      <p>  结束时间： <input class="laydate-icon" id="end" style="width:200px;"/></p>
    
      
      </div>
    </div>
    
    <div class="am-g search"> 
    	<P>
    	<button class="putcsv"><span class="am-icon-line-chart"></span> 导出订单 </button>
    	<button type="reset"><span class="am-icon-repeat"></span>重置</button>
    	<button id="search"><span class="am-icon-search"></span>搜索</button> 
    	</P>
    </div>
  <!-- 搜索条件end -->
</form>

    <div class="am-g">
      <div class="am-u-sm-12">

          <table class="am-table am-table-striped am-table-hover table-main ordertable">
            <thead>
              <tr>
                <th class="table-check"><input type="checkbox" id="checkAll" ></th>
                <th class="table-id">序号</th>
                <th class="table-title">订单号</th>
                <th class="table-title">订单数量</th>
                <th class="table-title">零售价</th>
                <th class="table-title">供货价</th>
               
                <th class="table-date">支付类型</th>
                <th class="table-date">经销商企业</th>
                <th class="table-date">创建时间</th>
                <th class="table-title">订单状态</th>
                 <th class="table-title">订单区域</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody >
            <foreach name="orders" item='order'>
            <tr class="tabbox">
              <td><input type="checkbox" name="subBox" value="{$order['orderid']}"></td>
              <td>{$order['orderid']}</td>
              <td> {$order['order_sn']}</td>
              <td>{$order['number']}</td>
              <td>{$order['price']}</td>
              <td>{$order['supperprice']}</td>
              <td>{$order.pay_type}</td>
              <td>{$order['companyname']}</td>
              <td>
              	<if condition="$order.create_time neq 0 ">
					{$order.create_time}
              	</if>
              </td>
              <td>{$order.allstatus}</td>
              <td>{$order.area}</td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <span class="am-icon-pencil-square-o"></span><a href="{:U('Order/editOrder',array('orderid'=>$order['orderid']))}" >详情</a> 
                    <span class="am-icon-trash-o"></span><a href="javascript:void(0)" class="delorder" value="{$order['orderid']}"> 删除 </a>
                  </div>
                </div>
              </td>
            </tr>
            </foreach>
          </tbody>
        </table>
          
  

<div class="am-fr page">
    <ul class="am-pagination" >
      <li>共<label class="count"> {$pagearr['count']}</label> 条记录</li>
      <li>当前第 <label class="currentpage"> {$pagearr['page']} </label> 页</li>
     <!--  <li><label>&nbsp;每页&nbsp;</label><input type="text" size="2" id="pagesize" placeholder= "<if   condition="$Think.cookie.pagesize neq '' ">{$Think.cookie.pagesize} </if>    " onkeypress="$.pageSize.setSize(this)">条</li> -->
     <li><label>&nbsp;每页&nbsp;</label><input type="text" size="2" id="pagesize" placeholder= "<if   condition="$Think.cookie.pagesize neq '' ">{$Think.cookie.pagesize}<else/> {:C('PAGESIZE')} </if>    " onkeypress="$.pageSize.setSize()">条</li>
      <li><a href="javascript:void" onclick="$.pageajax('firpage')" class="firpage" value="1" >第一页</a></li>
      <li><a href="javascript:void" onclick="$.pageajax('prepage')"  class="prepage" value="{$pagearr['page']-1}">上一页</a></li>
      <li><a href="javascript:void" onclick="$.pageajax('nexpage')"   class="nexpage" value="{$pagearr['page']+1}">下一页</a></li>
      <li><a href="javascript:void" onclick="$.pageajax('laspage')"   class="laspage" value="{$pagearr['totalpage']}">最末页</a></li>
     <!-- <li><input type="text" size="2" id="pageSize"class="am-input-group-sm" value="15"/ >&nbsp; <button class="am-btn-default am-btn-primary am-fr">GO</button> </li>-->
    </ul>
  </div>


      </div>

    </div>
  </div>
  <!-- content end -->
</div>
<script src="{:C('ADMIN_JS')}jquery.min.js"></script>
<include file="Public:footer"/>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}polyfill/rem.min.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}polyfill/respond.min.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="{:C('SUPPLIER_ADMIN_JS')}amazeui.min.js"></script>
<!--<![endif]-->
<script src="{:C('SUPPLIER_ADMIN_JS')}app.js"></script>
<script src="{:C('SUPPLIER_ADMIN_JS')}jquery.cookie.js"></script>
<script src="{:C('ADMIN_JS')}laydate/laydate.js"></script>
<script src="{:C('ADMIN_JS')}/admin.js"></script>
<script type="text/javascript">
  //初始化日历
  laydate($.start);
  laydate($.end);
</script>
</body>
</html>
